Leetcode 2022: Convert 1D Array Into 2D Array